package com.jinzecloud.reportapproval.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jinzecloud.reportapproval.bean.SampleDetails;
import com.jinzecloud.reportapproval.mapper.SampleDetailsMapper;
import com.jinzecloud.reportapproval.service.SampleDetailsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SampleDetailsServiceImpl extends ServiceImpl<SampleDetailsMapper, SampleDetails> implements SampleDetailsService {
    @Override
    public List<SampleDetails> getBySheeltId(Integer id) {
        QueryWrapper<SampleDetails> sampleDetailsQueryWrapper = new QueryWrapper<>();
        sampleDetailsQueryWrapper.eq("sample_sheet_id", id);
        List<SampleDetails> sampleDetailsList = list(sampleDetailsQueryWrapper);
        return sampleDetailsList;
    }
}
